//config.js被引入的路径
var host = window.location.host;
var hostArr=host.split(".");
var domain="";
if(hostArr.length>=2){
	domain=hostArr[hostArr.length-2]+"."+hostArr[hostArr.length-1];
}else{
	domain=hostArr[0];
}
if(domain.indexOf(":")>0){//去掉端口号
	domain = host.substring(0,host.indexOf(":"));
}
document.domain = domain;
if(self == top){
	host = window.location.host;
}else{//如果是被框架引用，host取框架的父页面的host
	host = window.parent.location.host;
}

var siteUrl = window.location.protocol+"//"+domain;

var h5GameUrl = "http://game."+domain;
var funnyUrl="http://funny."+domain;
var tryItUrl="http://tryit."+domain;
var imgUrl="http://img."+domain;